
local setmetatable = setmetatable


module "barf.nes"


palette = {
    [0x00] = {0x78,0x80,0x84},
    [0x01] = {0x00,0x00,0xFC},
    [0x02] = {0x00,0x00,0xC4},
    [0x03] = {0x40,0x28,0xC4},
    [0x04] = {0x94,0x00,0x8C},
    [0x05] = {0xAC,0x00,0x28},
    [0x06] = {0xAC,0x10,0x00},
    [0x07] = {0x8C,0x18,0x00},
    [0x08] = {0x50,0x39,0x00},
    [0x09] = {0x00,0x78,0x00},
    [0x0A] = {0x00,0x68,0x00},
    [0x0B] = {0x00,0x58,0x00},
    [0x0C] = {0x00,0x40,0x58},
    [0x10] = {0xBF,0xBF,0xBF},
    [0x11] = {0x00,0x6F,0xF0},
    [0x12] = {0x00,0x4F,0xF0},
    [0x13] = {0x60,0x3F,0xFF},
    [0x14] = {0xDF,0x00,0xE3},
    [0x15] = {0xE0,0x00,0x50},
    [0x16] = {0xF0,0x2F,0x00},
    [0x17] = {0xE0,0x50,0x0F},
    [0x18] = {0xAF,0x70,0x00},
    [0x19] = {0x00,0xAF,0x00},
    [0x1A] = {0x00,0xAF,0x00},
    [0x1B] = {0x00,0xAF,0x3F},
    [0x1C] = {0x00,0x8F,0x8F},
    [0x20] = {0xF0,0xF0,0xF0},
    [0x21] = {0x30,0xBF,0xFF},
    [0x22] = {0x60,0x80,0xFF},
    [0x23] = {0x90,0x6F,0xF0},
    [0x24] = {0xF0,0x6F,0xF0},
    [0x25] = {0xF0,0x4F,0x90},
    [0x26] = {0xF0,0x6F,0x4F},
    [0x27] = {0xFF,0xA0,0x3F},
    [0x28] = {0xF0,0x80,0x00},
    [0x29] = {0xB0,0xF0,0x0F},
    [0x2A] = {0x50,0xDF,0x4F},
    [0x2B] = {0x4F,0xF0,0x90},
    [0x2C] = {0x00,0xEF,0xE9},
    [0x2D] = {0x6F,0x6F,0x6F},
    [0x30] = {0xFF,0xFF,0xFF},
    [0x31] = {0xA0,0xE0,0xFF},
    [0x32] = {0xB0,0xB0,0xF0},
    [0x33] = {0xD0,0xB0,0xF0},
    [0x34] = {0xF0,0xB0,0xF0},
    [0x35] = {0xFF,0xA0,0xC0},
    [0x36] = {0xEF,0xCF,0xAF},
    [0x37] = {0xFF,0xE0,0xAF},
    [0x38] = {0xE1,0xDF,0x70},
    [0x39] = {0xD0,0xF0,0x6F},
    [0x3A] = {0xB0,0xF0,0xB0},
    [0x3B] = {0xB0,0xF0,0xD0},
    [0x3C] = {0x00,0xFF,0xFF},
    [0x3D] = {0xF0,0xD0,0xF0}
}

setmetatable(palette, {
    __index = function()
        return {0x00, 0x00, 0x00}
    end;
})

return palette
